<?php

return array(

	'rules' => array(

		'roleDefines' => array(
			'provider' => 'Yii::app()->adminUser->id == $data->provider_id',
			'dealer' => 'Yii::app()->adminUser->id == $data->dealer_id',	
		),
		
		'config' => array(
			'provider' => array(
				'ST_NONE' => array('passed', 'unpassed'),
				'ST_COMMIT' => array('passed', 'unpassed'),
				'*' => array('delete'),
			),
			'dealer' => array(
				'ST_UNPASSED' => array('commit'),
				'*' => array('delete'),
			),
			AdminUser::ROLE_OPERATOR => array(
				'ST_UNPASSED' => array('commit'),
				'ST_NONE' => array('passed', 'unpassed'),
				'ST_COMMIT' => array('passed', 'unpassed'),
				'*' => array('delete'),
			),
		),
		
	),
	
	'_import' => array(
		array('*', 'status.worker.audit2//*'),
		array('rules.roleDefines.*', 'status.worker.audit2//rules.roleDefines.*'),
	),
	
);